#include"Task.h"

Task::Task()
{}

Task::Task(string inContent, Time& inStart, Time& inEnd, bool inPriority)
{
	content=inContent;
	startTime=inStart;
    endTime=inEnd;
    priority=inPriority;
}

string Task::getContent(){return content;}
Time Task::getStartTime(){return startTime;}
Time Task::getEndTime(){return endTime;}
bool Task::getPriority(){return priority;}

void Task::setContent(string inContent){content=inContent;}
void Task::setStartTime(Time inStart){startTime=inStart;}
void Task::setEndTime(Time inEnd){endTime = inEnd;}
void Task::setPriority(bool inPriority){priority=inPriority;}


string Task::toPrint()
{
	string toPrint;
	string stToPrint;
	string etToPrint;
	stToPrint=startTime.print();
	etToPrint=endTime.print();
	toPrint.append(content+" "+stToPrint+" "+etToPrint);
	return toPrint;
}